import { defineClientConfig } from "vuepress/client";
import NpmBadge from "vuepress-theme-plume/features/NpmBadge.vue";
import NpmBadgeGroup from "vuepress-theme-plume/features/NpmBadgeGroup.vue";
import RepoCard from "vuepress-theme-plume/features/RepoCard.vue";
import { useStatistics } from "./docs/.vuepress/theme/composables/statistics";

import './docs/.vuepress/theme/styles/index.css'

export default defineClientConfig({
  enhance({ app }) {
    app.component("RepoCard", RepoCard);
    app.component("NpmBadge", NpmBadge);
    app.component("NpmBadgeGroup", NpmBadgeGroup);
  },
  setup() {
    useStatistics();
  },
});
